package group_1.MultiSnake;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class JoinGamePop extends Activity implements OnClickListener{
	private Button joinBtn;
	private Button cancelBtn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.joingamepop);
		joinBtn = (Button)findViewById(R.id.join_btn);
		cancelBtn = (Button)findViewById(R.id.cancel_btn);
		joinBtn.setOnClickListener(this);
		cancelBtn.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		switch(v.getId()) {
		case R.id.join_btn:
			setResult(Activity.RESULT_OK);
			this.finish();
			break;
		case R.id.cancel_btn:
			this.finish();
			break;
		}
	}
}
